<style>
    body{
        background-color: #f9f9f9;
    }
    .xh-form tr td:nth-child(2n){
        padding: 5px 20px 5px 0;
        width: 200px;
    }
    td>label{
        margin-right: 10px;
        float: right;
    }
</style>
<script>
    var project_data = {{ project }};
    var free_data = {{ free }};
</script>
<form id="charge_form" class="xh-form"  method="post" action="{{ url("Device/changeStatus") }}" >
    <div class="xh-area-form">
        <table style="width: 100%">
            <tr style="display: none">
                <td><input id="id_data" value="{{ id }}"/></td>
                <td><input id="type_data" value="{{ type }}"/></td>
                <td><input id="status_data" value="{{ status }}"/></td>
                <td><input id="report_url"/></td>
            </tr>
            {% if free == 1 %}
                <tr>
                    <td style="width: 50px"><label>设备类型：</label></td><td style="width: 120px"><input id="model" name="model" must="true" type="text" disabled="disabled" value="{{ model }}"></td>
                </tr>
                <tr>
                    <td ><label>维修项目：</label></td><td style="width: 120px"><select id="project" name="project[]" multiple="multiple"></select></td>
                    <td ><label>维修金额：</label></td><td style="width: 120px" ><input id="money" name="money" type="text" disabled="disabled"></td>
                </tr>
            {% elseif free == 2 %}
                <tr>
                    <td style="width: 50px"><label>设备类型：</label></td><td style="width: 120px"><input id="model" name="model" must="true" type="text" disabled="disabled" value="{{ model }}"></td>
                    <td ><label>维修项目：</label></td><td style="width: 120px"><select id="project" name="project[]" multiple="multiple"></select></td>
                </tr>
                <tr>
                    <td style="display: none"><label>维修金额：</label></td><td style="width: 120px;display: none" ><input id="money" name="money" type="text" disabled="disabled"></td>
                </tr>
            {% endif %}
            <tr>
                <td ><label>检测内容：</label></td>
                <td colspan="3"><textarea style="height:200px" id="chectContent" must="true" name="chectContent" type="text" placeholder="必填"></textarea></td>
            </tr>
            <tr >
                <td ><label>检测报告：</label></td><td><input id="checkReport" name="checkReport" type="file"></td>
                <td ><label>上传状态：</label></td><td><input id="progress" name="progress" type="text" placeholder="未开始" disabled="disabled"></td>
            </tr>
            <tr>
                <td ><label>上传类型：</label></td><td >(jpg/jpeg/png/bmp/gif)</td>
                <td ></td><td ></td>
            </tr>
        </table>
    </div>
</form>